package com.usiful.model;

import java.util.Set;

/**
 * 
 * @author [周织能]
 * @description 产品模型
 * @date 2016年7月23日
 */
public class Product extends BaseModel{

	private static final long serialVersionUID = -3437607617046638379L;

	//产品主类
	public enum ProductType {
		Type_Common3C,					//常规3c类产品,耳机键盘...etc
		Type_CommonDress,				//常规服饰,衣服鞋子...etc
		Type_Toy,						//玩具
		Type_SportDress,				//运动服饰,骑行服...手套etc
		Type_Hardware,					//硬件类,指配件类，非手机，耳机等已可以单独提供功能的
										//并带有完善包装，更倾向于音卡，显卡一类
		Type_DevHardware,				//开发类硬件,如树莓派，arduino一类
	}
	
	//产品子类
	public enum ProductSubType{
		
	}
	
	protected String productId;				//产品ID
	protected String homeUrl;				//主页url
	protected ProductType type;				//类型
	protected String name;					//名称
	protected String description;   		//描述
	protected Set<String> tags;				//关键字
	protected String imageUrl;				//图片url
	protected float buyPrice;				//购入价格
	protected float salePrice;				//销售价格
	protected String priceUnit;				//钱的单位
	protected float monthSales;				//当前月销量
	protected float totalSales;				//总销量
	protected String buyTime;				//购入日期
	protected String publicTime;			//上架日期
	protected String withdrawTime;			//下架日期
	protected Set<String> suppliers;		//供应商id列表
	protected Set<FollowSale> followSales;	//跟卖列表
	
	public String getProductId() {
		return productId;
	}
	public void setProductId(String productId) {
		this.productId = productId;
	}
	
	public ProductType getType() {
		return type;
	}
	public void setType(ProductType type) {
		this.type = type;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public Set<String> getTags() {
		return tags;
	}
	public void setTags(Set<String> tags) {
		this.tags = tags;
	}
	public float getBuyPrice() {
		return buyPrice;
	}
	public void setBuyPrice(float buyPrice) {
		this.buyPrice = buyPrice;
	}
	
	public Set<FollowSale> getFollowSales() {
		return followSales;
	}
	public void setFollowSales(Set<FollowSale> followSales) {
		this.followSales = followSales;
	}
	public float getSalePrice() {
		return salePrice;
	}
	public void setSalePrice(float salePrice) {
		this.salePrice = salePrice;
	}
	public String getBuyTime() {
		return buyTime;
	}
	public void setBuyTime(String buyTime) {
		this.buyTime = buyTime;
	}
	public String getPublicTime() {
		return publicTime;
	}
	public void setPublicTime(String publicTime) {
		this.publicTime = publicTime;
	}
	public String getWithdrawTime() {
		return withdrawTime;
	}
	public void setWithdrawTime(String withdrawTime) {
		this.withdrawTime = withdrawTime;
	}
	public Set<String> getSuppliers() {
		return suppliers;
	}
	public void setSuppliers(Set<String> suppliers) {
		this.suppliers = suppliers;
	}
	public float getMonthSales() {
		return monthSales;
	}
	public void setMonthSales(float monthSales) {
		this.monthSales = monthSales;
	}
	public String getHomeUrl() {
		return homeUrl;
	}
	public void setHomeUrl(String homeUrl) {
		this.homeUrl = homeUrl;
	}
	public String getImageUrl() {
		return imageUrl;
	}
	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}
	public String getPriceUnit() {
		return priceUnit;
	}
	public void setPriceUnit(String priceUnit) {
		this.priceUnit = priceUnit;
	}
	public float getTotalSales() {
		return totalSales;
	}
	public void setTotalSales(float totalSales) {
		this.totalSales = totalSales;
	}
	
	
	
}
